<!DOCTYPE html>
    <html xmlns:th="http://www.w3.org/1999/xhtml" lang="zh-CN" >
        <head th:fragment="head(title)">
            <meta charset="utf-8">
            <meta http-equiv="X-UA-Compatible" content="IE=edge">
            <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
            <title th:replace="${title}">博客后台</title>
            <link rel="shortcut icon" href="../../static/lib/img/k.ico" th:href="@{/lib/img/k.ico}" type="image/x-icon">
            <link rel="stylesheet" href="../../static/components/bootstrap/css/bootstrap.min.css" th:href="@{/components/bootstrap/css/bootstrap.min.css}">
            <link rel="stylesheet" href="../../static/components/bootstrap/css/bootstrap-datepicker3.min.css" th:href="@{/components/bootstrap/css/bootstrap-datepicker3.min.css}">
            <link rel="stylesheet" href="../../static/components/bootstrap/css/bootstrap-datetimepicker.min.css" th:href="@{/components/bootstrap/css/bootstrap-datetimepicker.min.css}">
            <link rel="stylesheet" href="../../static/components/font-awesome/css/font-awesome.min.css" th:href="@{/components/font-awesome/css/font-awesome.min.css}">
            <link rel="stylesheet" href="../../static/components/ionicons/css/ionicons.min.css" th:href="@{/components/ionicons/css/ionicons.min.css}">
            <link rel="stylesheet" href="../../static/components/switchery/switchery.min.css" th:href="@{/components/switchery/switchery.min.css}">
            <link rel="stylesheet" href="../../static/components/toastr/toastr.min.css" th:href="@{/components/toastr/toastr.min.css}">
            <link rel="stylesheet" href="../../static/adminlte/css/AdminLTE.min.css" th:href="@{/adminlte/css/AdminLTE.min.css}">
            <link rel="stylesheet" href="../../static/adminlte/css/skins/skin-blue.min.css" th:href="@{/adminlte/css/skins/skin-blue.min.css}">
            <link rel="stylesheet" href="../../static/admin/css/admin.css" th:href="@{/admin/css/admin.css}">
            <!--[if lt IE 9]>
            <script src="../../static/components/html5shiv/html5shiv.min.js" th:href="@{/components/html5shiv/html5shiv.min.js}"></script>
            <script src="../../static/components/respond/respond.min.js" th:href="@{/components/respond/respond.min.js}"></script>
            <![endif]-->
        </head>
        <body class="hold-transition skin-blue sidebar-mini">
        <div class="wrapper">
            <!-- Admin_Header_Start -->
            <header class="main-header" th:fragment="Admin_Header">
                <!-- Logo -->
                <a href="/" target="_blank" class="logo">
                    <span class="logo-mini"><b>NTU</b></span>
                    <span class="logo-lg"><b>yyl</b></span>
                </a>
                <nav class="navbar navbar-static-top">
                    <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
                        <span class="sr-only">切换</span>
                    </a>
                    <div class="navbar-custom-menu">
                        <ul class="nav navbar-nav">
                            <li class="dropdown user user-menu">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                    <img src="#" class="user-image">
                                    <span class="hidden-xs"  th:text ="'您好 '+ ${userInfo.username}+ ' , 欢迎回来'">您好 ${userInfo.username} , 欢迎回来</span>
                                </a>
                                <ul class="dropdown-menu">
                                    <li class="user-header">
                                        <img src="#" class="img-circle">
                                        <p>
                                            <div th:text ="${userInfo.username}">${userInfo.username}</div>
                                            <small th:text ="${userInfo.logged}">2020-11-04 18:36</small>
                                        </p>
                                    </li>
                                    <li class="user-footer">
                                        <div class="pull-left">
                                            <a href="#" th:href="'/admin/user/UserInfo?userid='+${userInfo.id}" class="btn btn-default btn-flat">我的资料</a>
                                        </div>
                                        <div class="pull-left" style="padding-left: 5px">
                                            <a href="#" class="btn btn-default btn-flat" target="_blank">用户中心</a>
                                        </div>
                                        <div class="pull-right">
                                            <a href="/logout.do" class="btn btn-default btn-flat">退出</a>
                                        </div>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                    </div>
                </nav>
            </header>
            <!-- Admin_Header_End -->

            <!-- Admin_Left_menu_Start -->
            <aside class="main-sidebar" th:fragment="Admin_Left_menu">
                <!-- 表明所处页面 -->
                <script type="text/javascript">
                    var web = {cpath:''}
                </script>
                <section class="sidebar" >
                    <!-- sidebar menu: : style can be found in sidebar.less -->
                    <ul class="sidebar-menu" data-widget="tree" id="sidebar-menu">
                        <li class="block"></li>
                        <li class="link">
                            <a href="/admin/dashboard"><i class="fa fa-dashboard"></i> <span>面板</span></a>
                        </li>

                        <li class="block"></li>
                        <li class="treeview">
                        <a href="#"><i class="fa fa-fw fa-file-text"></i> <span>文章</span>
                            <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
                        </a>
                        <ul class="treeview-menu">
                            <li><a href="/admin/article" target="">文章管理</a></li>
                            <li><a href="/admin/article/write.html" target="">写文章</a></li>
                            <li><a href="/admin/article/category.html" target="">分类</a></li>
                            <li><a href="/admin/article/tag.html" target="">标签</a></li>
                            <li><a href="/admin/article/comment.html" target="">评论</a></li>
                            <li><a href="/admin/article/setting.html" target="">设置</a></li>
                        </ul>
                        </li>
                        <li class="treeview">
                        <a href="#"><i class="fa fa-fw fa-file"></i> <span>页面</span>
                            <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
                        </a>
                        <ul class="treeview-menu">
                            <li><a href="/admin/page" target="">页面管理</a></li>
                            <li><a href="/admin/page/write.html" target="">新建</a></li>
                            <li><a href="/admin/page/comment.html" target="">评论</a></li>
                            <li><a href="/admin/page/setting.html" target="">设置</a></li>
                        </ul>
                        </li>

                        <li class="treeview">
                        <a href="#"><i class="fa fa-fw fa-folder-open"></i> <span>附件</span>
                            <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
                        </a>
                        <ul class="treeview-menu">
                            <li><a href="/admin/attachment" target="">所有附件</a></li>
                            <li><a href="/admin/attachment/upload.html" target="">上传</a></li>
                            <li><a href="/admin/attachment/setting.html" target="">设置</a></li>
                            <li><a href="/admin/attachment/root.html" target="">根目录</a></li>
                        </ul>
                        </li>
                        <li class="header">基础</li>

                        <li class="treeview">
                        <a href="#"><i class="fa fa-fw fa-user"></i> <span>用户</span>
                            <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
                        </a>
                        <ul class="treeview-menu">
                            <li><a href="/admin/user" target="">用户管理</a></li>
                            <li><a href="/admin/user/tag.html" target="">用户标签</a></li>
                            <li><a href="/admin/user/mgroup.html" target="">会员组</a></li>
                            <li><a href="/admin/user/sendMsg.html" target="">发消息</a></li>
                            <li><a href="/admin/user/UserInfo.html" th:href="'/admin/user/UserInfo?userid='+${userInfo.id}" target="">用户资料</a></li>
                        </ul>
                        </li>

                        <li class="treeview">
                        <a href="#"><i class="fa fa-magic"></i> <span>模板</span>
                            <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
                        </a>
                        <ul class="treeview-menu">
                            <li><a href="/admin/template/menu.html" target="">菜单</a></li>
                            <li><a href="/admin/template/setting.html" target="">设置</a></li>
                            <li><a href="/admin/template/edit.html" target="">编辑</a></li>
                        </ul>
                        </li>

                        <li class="treeview">
                        <a href="#"><i class="fa fa-cog"></i> <span>系统</span>
                            <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
                        </a>
                        <ul class="treeview-menu">
                            <li><a href="/admin/system/setting.html" target="">常规</a></li>
                            <li><a href="/admin/system/reg.html" target="">登录注册</a></li>
                        </ul>
                        </li>
                    </ul>
                </section>
            </aside>
            <!-- Admin_Left_menu_End -->

            <!--Form -->

            <!-- ./Form-->

            <!--Footer-->
            <footer class="main-footer" th:fragment="footer">
                <div class="pull-right hidden-xs">
                    version v3.2.5
                </div>
                Copyright &copy; 2016-2020 <a href="http://www.jpress.io" target="_blank">JPress Studio</a>. All rights
                reserved.
            </footer>
            <!-- ./Footer-->

        </div>
            <!-- scripts -->
            <th:block th:fragment="scripts">
                <script src="../../static/components/jquery/jquery.min.js" th:src="@{/components/jquery/jquery.min.js}"></script>
                <script src="../../static/components/jquery/jquery.form.min.js" th:src="@{/components/jquery/jquery.form.min.js}"></script>
                <script src="../../static/components/bootstrap/js/bootstrap.js" th:src="@{/components/bootstrap/js/bootstrap.js}"></script>
                <script src="../../static/components/bootstrap/js/bootstrap-datepicker.min.js" th:src="@{/components/bootstrap/js/bootstrap-datepicker.min.js}"></script>
                <script src="../../static/components/bootstrap/js/bootstrap-datepicker.zh-CN.min.js" th:src="@{/components/bootstrap/js/bootstrap-datepicker.zh-CN.min.js}"></script>
                <script src="../../static/components/moment/moment.min.js" th:src="@{/components/moment/moment.min.js}"></script>
                <script src="../../static/admin/js/zh-cn.js" th:src="@{/admin/js/zh-cn.js}"></script>
                <script src="../../static/components/bootstrap/js/bootstrap-datetimepicker.min.js" th:src="@{/components/bootstrap/js/bootstrap-datetimepicker.min.js}"></script>
                <script src="../../static/components/fastclick/fastclick.js" th:src="@{/components/fastclick/fastclick.js}"></script>
                <script src="../../static/components/layer/layer.js" th:src="@{/components/layer/layer.js}"></script>
                <script src="../../static/components/switchery/switchery.min.js" th:src="@{/components/switchery/switchery.min.js}"></script>
                <script src="../../static/components/toastr/toastr.min.js" th:src="@{/components/toastr/toastr.min.js}"></script>
                <script src="../../static/adminlte/js/adminlte.min.js" th:src="@{/adminlte/js/adminlte.min.js}"></script>
                <script src="../../static/admin/js/admin.js" th:src="@{/admin/js/admin.js}"></script>
                <script src="../../static/commons/commons.js" th:src="@{/commons/commons.js}"></script>
                <script src="../../static/admin/js/csrf.js" th:src="@{/admin/js/csrf.js}"></script>
                <script>
                    var date = getPara("date");
                    if ("today" == date) {
                        $("#group-today").addClass("active");
                    } else if ("yesterday" == date) {
                        $("#group-yesterday").addClass("active");
                    } else if ("7d" == date) {
                        $("#group-7d").addClass("active");
                    } else if ("14d" == date) {
                        $("#group-14d").addClass("active");
                    } else if ("28d" == date) {
                        $("#group-28d").addClass("active");
                    } else {
                        $("#group-today").addClass("active");
                    }
                </script>
            </th:block>
            <!-- ./scripts -->
        </body>
    </html>
